package top.amot.forceview.drawitem

import android.content.Context
import android.graphics.Canvas
import android.graphics.PointF
import top.amot.forceview.layout.I_Layout
import top.amot.forceview.model.AbstractNode
import top.amot.forceview.model.NodeGroup
import top.amot.forceview.theme.I_Theme

class DefaultNodeGroupDrawItem(context: Context,var layout: I_Layout) : AbstractDrawItem<NodeGroup>(context) {

    override fun isType(node: AbstractNode): Boolean {
        return node is NodeGroup
    }

    override fun measure(node: NodeGroup) {
        //layout.setNodeModel(node.nodeModel)
    }

    override fun calcLinkPoint(node: NodeGroup, position: LinkPointPosition): PointF {
        TODO("Not yet implemented")
    }

    override fun drawItem(canvas: Canvas, theme: I_Theme, node: NodeGroup, isSelectNode: Boolean) {
        TODO("Not yet implemented")
    }

    override fun containPoint(node: NodeGroup, x: Float, y: Float): Boolean {
       return false
    }
}